import request from '@/utils/request';

// 添加成员
export function addChild(data) {
  return request({
    url: '/member/addChild',
    method: 'post',
    data
  });
}

// 设置默认成员
export function setDefaultChild(id) {
  return request({
    url: '/member/setChildDefault',
    method: 'post',
    data: { id: id }
  });
}

export function updateChild(data) {
  return request({
    url: '/member/updateChild',
    method: 'post',
    data
  });
}